<?php
/**
 * Created by PhpStorm.
 * User: xaq
 * Date: 2017/5/21
 * Time: 16:53
 */

namespace app\api\model;

use app\api\model\BaseModel;

class Category extends BaseModel
{
    public function img() {
        return $this->belongsTo('Image','topic_img_id','id');
    }
}